<?php

/**
 * Description of BISpaceResourceItem
 *
 * @author Wang Jianfeng
 */
interface BITreeObj {

    public function haveChildren($data = null);

    public static function getRoot($data = null);

    /**
     * 
     * @param mix $data, if want get foler children, just add type='folder'
     */
    public function getChildren($context = null, $recursive = FALSE, &$recursiveItems = array());

    public function getParent($context = null, $recursive = FALSE, &$recursiveItems = array());

    public function addChildItem($item, $data = null);

    public function removeChildItem($item, $data = null);
}

?>
